<template>
   <div>
      欢迎来到{{val}}
    </div>
</template>

<script>
// import bus from '../utils/bus.js';
export default {
    data() {
        return {
          val: '北京'
        };
    },
    created() {},
    mounted() {
    //   bus.$on('cut',(val)=>{
    //     this.val = val;
    //   })
     this.$bus.$on('cut',this.childCut);
    },
    methods: {
      childCut(value){
        this.val = value;
      }
    },
    components:{}
};
</script>

<style lang='scss'>

</style>
